package cc.facesign.acl.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 权限角色
 * </p>
 *
 * @author acdongla
 * @since 2022-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AclRole对象", description="权限角色")
@NoArgsConstructor
public class AclRole implements Serializable {

    public AclRole(String name, String rokeKey, String remark, String rid) {
        this.name = name;
        this.rokeKey = rokeKey;
        this.remark = remark;
        this.rid = rid;
    }


    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "角色名")
    private String name;

    @ApiModelProperty(value = "角色权限字符串")
    private String rokeKey;

    @ApiModelProperty(value = "角色状态（0正常 1停用）")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    private String rid; // 单位id

    private Date gmtCreate;

    private Date gmtUpdate;


}
